Image processing method for facilitating data transmission

ABSTRACT

An image processing method for facilitating data transmission is provided. An image compression method is performed to convert X-bits binary digital signals to a binary compressed data in a floating-point form of (1.n)*2 m . Bit m represents the first bit with logic level “1” of the X-bits binary digital signals, and n represents the bits taken from the X-bits binary digital signals after the bit m. The binary compressed data in the floating-point form of (1.n)*2 m  is outputted with a sequence of binary number representing a set of (m, n). The latter n bits of the sequence of binary numbers are consisted of the n bits of the X-bits digital signal. Therefore, by the present image compression method, the transmission amount of image data is reduced. The transmission time of image data and the volume of a memory for storing the image data are also reduced.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to an image processing method, and more particularly, to an image compression method for binary digital signals.

2. Description of the Prior Art

Without image compression, the transmission of images requires an unacceptable bandwidth in many applications. As a result, methods of compressing images have been the subject of numerous research publications. Image compression schemes convert an image consisting of a two-dimensional array of pixels into a sequence of bits, which are to be transmitted over a communication link. Each pixel represents the intensity of the image at a particular location therein. The transmission link may be an ordinary telephone line.

Consider an image comprising a gray-scale representation of a photograph at a resolution of 1000×1000 lines. Each pixel typically consists of 8 bits, which are used to encode 256 possible intensity levels at the corresponding point on the photograph. Hence, without compression, transmission of the photograph requires that 8 million bits be sent over the communication link. A typical telephone line is capable of transmitting about 9600 bits per second; hence the picture transmission would require more than 10 minutes. Transmission times of this magnitude are unacceptable.

As a result, image compression systems are needed to reduce the transmission time. It will also be apparent to those skilled in the art that image compression systems may also be advantageously employed in image storage systems to reduce the amount of memory needed to store one or more images.

Image compression involves transforming the image to a form, which can be represented in fewer bits without losing the essential features of the original images. The transformed image is then transmitted over the communication link and the inverse transformation is applied at the receiver to recover the image. The compression of an image typically requires two steps. In the first step, the image is transformed to a new representation in which the correlation between adjacent pixels is reduced. This transformation is usually completely reversible, that is, no information is lost at this stage. The number of bits of data needed to represent the transformed image is at least as large as that needed to represent the original image. The purpose of this transformation is to provide an image representation, which is more ideally suited to known compression methods.

In the second step, referred to as quantization, each pixel in the transformed image is replaced by a value, which is represented in fewer bits, on average, than the original pixel value. In general, the original gray scale is replaced by a new scale, which has coarser steps and hence can be represented in fewer bits. The new gray scale is calculated from the statistical distribution of the pixel values in the transformed image.

The quantized image resulting from the above two steps is often further coded for transmission over the communication link. This coding is completely reversible. Its purpose is to provide a more compact representation of the quantized picture. At the other end of the communication link, the coded image is decoded, the quantization transformation is reversed and the inverse of the first transformation is performed on the resulting image to provide a reconstructed image.

However, the known image compression method usually utilizes a complicated encoding and decoding circuitry to attain the more compact image data for transmission. The coding/decoding process is also complicated. Moreover, the image transformation circuitry is a significant cost factor in image compression apparatuses. The required computational expense clearly depends on the image transformation selected. Hence, an image compression method, which requires less computation than the prior image compression method, would be advantageous.

SUMMARY OF THE INVENTION

It is one objective of the present invention to provide an image processing method for facilitating data transmission, which performs an image compression method for converting X-bits binary digital signals to a binary compressed data in a floating-point form of (1.n)*2^(m), in which bit m represents the first bit with logic level “1” of the X-bits binary digital signals, and n represents the bits taken from the X-bits binary digital signals after the bit m. The binary compressed data in the floating-point form of (1.n)*2^(m) is outputted with a sequence of binary number representing a set of (m, n). The latter n bits of the sequence of binary numbers are consisted of the n bits of the X-bits binary digital signals. Therefore, the transmission amount of image data is reduced, and the transmission rate of the image data is facilitated.

It is another objective of the present invention to provide an image processing method for facilitating data transmission, which implements a simple compression method to convert X-bits binary digital signals to a binary compressed data in a floating-point form of (1.n)*2^(m). The complicated encoding and decoding processes for image compression and processing circuits therefore are omitted by the present compression method.

It is a further objective of the present invention to provide an image processing method, which performs a bit-enhanced technology to compensate decompressed image data to increase the accuracy of the recovery of the image data.

It is still further an objective of the present invention to provide an image processing method, which uses a simple image compression method to obtain the purpose of making the recovered image with low grayscale level non-distorted and the recovered image with high grayscale level noise-eliminated.

In order to achieve the above objectives of this invention, the present invention provides an image processing method for facilitating data transmission. The present method comprises capturing an image signal from an object with an image capture device, and providing the image signal to an analog-to-digital converter for converting the image signal to X-bits binary digital signals consisted of bit (X−1) to bit 0, wherein X is a natural number. Then, the X-bits binary digital signals is transmitted to image processing means for compressing the X-bits binary digital signals to a binary compressed data in a floating-point form of (1.n)*2^(m). Bit m represents the first bit with logic level “1” of the X-bits binary digital signals, and n represents the bits taken from the X-bits binary digital signals after the bit m, n is a non-negative integer. The binary compressed data in the floating-point form of (1.n)*2^(m) is outputted with a sequence of binary number representing a set of (m, n), and the latter n bits of the sequence of binary numbers are consisted of the n bits of the X-bits binary digital signals. The binary compressed data is then transmitted to memory means for storage. By the present image compression method, the transmission amount of image data is reduced. The transmission rate of image data is facilitated and the volume of a memory for storing the image data is also reduced.

BRIEF DESCRIPTION OF THE DRAWINGS

The objectives and features of the present invention as well as advantages thereof will become apparent from the following detailed description, considered in conjunction with the accompanying drawings.

FIG. 1 is a block diagram of an image processing system implementing image compression methods of the present invention;

FIG. 2 is a block diagram of another image processing system implementing the image compression methods of the present invention;

FIG. 3 is a flow chart of one embodiment of the present invention illustrating the present image compression method; and

FIG. 4 is a flow chart for illustrating an image decompression process of the present invention.

DESCRIPTION OF THE PREFERRED EMBODIMENTS

Referring to the figures, exemplary embodiments of the invention will now be described. The exemplary embodiments are provided to illustrate aspects of the invention and should not be construed as limiting the scope of the invention. The exemplary embodiments are primarily described with reference to block diagrams and flowcharts.

FIG. 1 is a block diagram of an image processing system implementing image compression methods of the present invention, and FIG. 2 is a block diagram of another image processing system implementing the image compression methods of the present invention. FIG. 3 is a flow chart of one embodiment of the present invention illustrating the present image compression method. FIG. 4 is a flow chart for illustrating an image decompression process of the present invention.

Initially, referring to FIG. 1, an image is captured from an object by an image capture device 101, e.g. charge-coupled device (CCD), CMOS sensor and the like capable of converting an image signal to an electric signal. The image signal represents intensity of a pixel of the image captured by the image capture device 101. The electric signal is then provided to an A/D converter (analog-to-digital converter) 102 to convert to X-bits binary digital signals, which are consisted of binary values from bit (X−1) to bit 0. The X-bits binary digital signals are transmitted to image processing means 103 for being compressed to a binary compressed data in a floating-point form of (1.n)*2^(m), wherein bit m represents the first bit with logic level “1” of the X-bits binary digital signals, and n represents the bits taken from the X-bits binary digital signals after the bit m, n is a non-negative integer. Hence, by image processing means 103, e.g. an image processing circuit, the X-bits binary digital signals are converted to the binary compressed data in the floating-point form of (1.n)*2^(m), which is outputted with a sequence of binary number, (x x x . . . , x), representing a set of (m, n). The latter n bits of the sequence of binary numbers are consisted of the n bits of the X-bits binary digital signals. The binary compressed data is then transmitted with the sequence of binary numbers, (x x . . . , x), representing the set of (m, n), to a memory 104, e.g. a buffer memory, for storage.

FIG. 3 is a flow chart of one embodiment of the present invention illustrating the image compression process for 8-bits binary digital signals implemented by image processing means 103. The image compression process of the embodiment for 8-bits binary digital signals will be described in detail in the following. In step 303, the 8-bits binary digital signals consisted of binary values from bit 7 to bit 0 is provided to image processing means 103. In step 304, when bit 7 is logic level “1”, go to step 305, m is set to 7 and n is assigned from bit 6 to bit 3 of the 8-bits binary digital signals. Then, the 8-bits binary digital signals are converted to a binary compressed data in a floating-point form of (1.xxxx)*2⁷. The binary compressed data is outputted with 7-bits binary numbers, (1 1 1 x x x x). The former 3 bits of the 7-bits binary numbers represent the value of 7 and the latter 4 bits of the 7-bits binary numbers are consisted of bit 6 to bit 3 of the 8-bits binary digital signals. In step 306, when bit 7 is logic level “0” and bit 6 is logic level “1”, go to step 307, m is set to 6 and n is assigned from bit 5 to bit 2 of the 8-bits binary digital signals. Then, the 8-bits binary digital signals are converted to a binary compressed data in a floating-point form of (1.xxxx)*2⁶. The binary compressed data is outputted with 7-bits binary numbers, (1 1 0 x x x x). The former 3 bits of the 7-bits binary numbers represent the value of 6 and the latter 4 bits of 7-bits binary numbers are consisted of bit 5 to bit 2 of the 8-bits binary digital signals. In step 308, when both of bit 7 and bit 6 are logic level “0”, and bit 5 is logic level “1”, go to step 309, m is set to 5, and n is assigned from bit 4 to bit 1 of the 8-bits binary digital signals. Then, the 8-bits binary digital signals are converted to a binary compressed data in a floating-point form of (1.xxxx)*2⁵. The binary compressed data is outputted with 7-bits binary numbers, (1 0 1 x x x x). The former 3 bits of the 7-bits binary numbers represent the value of 5 and the latter 4 bits of 7-bits binary numbers are consisted of bit 4 to bit 1 of the 8-bits binary digital signals. In step 310, when bit 7, bit 6 and bit 5 are logic level “0”, and bit 4 is logic level “1”, go to step 311, m is set to 4, and n is assigned from bit 3 to bit 0 of the 8-bits binary digital signals. Then, the 8-bits binary digital signals are converted to a binary compressed data in a floating-point form of (1.xxxx)*2⁴. The binary compressed data is outputted with 7-bits binary numbers, (1 0 0 x x x x). The former 3 bits of the 7-bits binary numbers represent the value of 4 and the latter 4 bits of 7-bits binary numbers are consisted of bit 3 to bit 0 of the 8-bits binary digital signals. In step 312, when bit 7, bit 6, bit 5 and bit 4 are logic level “0”, and bit 3 is logic level “1”, go to step 313, m is set to 3, n is assigned from bit 2 to bit 0 of the 8-bits binary digital signals. Then, the 8-bits binary digital signals are converted to a binary compressed data in a floating-point form of (1.xxx)*2³. The binary compressed data is outputted with 6-bits binary numbers, (0 1 1 x x x). The former 3 bits of the 6-bits binary numbers represent the value of 3 and the latter 3 bits of the 6-bits binary numbers are consisted of bit 2 to bit 0 of the 8-bits binary digital signals. In step 314, when bit 7 to bit 3 are logic level “0”, and bit 2 is logic level “1”, go to step 315, m is set to 2, n is assigned from bit 1 to bit 0 of the 8-bits binary digital signals. Then, the 8-bits binary digital signals are converted to a binary compressed data in a floating-point form of (1.xx)*2². The binary compressed data is outputted with 5-bits binary numbers, (0 1 0 x x). The former 3 bits of the 5-bits binary numbers represent the value of 2 and the latter 2 bits of the 5-bits binary numbers are consisted of bit 2 to bit 0 of the 8-bits binary digital signals. In step 316, when bit 7 to bit 2 are logic level “0”, and bit 1 is logic level “1”, go to step 317, m is set to 1, and n is assigned bit 0 of the 8-bits binary digital signals. Then, the 8-bits binary digital signals are converted to a binary compressed data in a floating-point form of (1.x)*2¹. The binary compressed data is outputted with 4-bits binary numbers, (0 0 1 x). The former 3 bits of the 4-bits binary numbers represent the value of 1 and the last bit of the 4-bits binary numbers is bit 0 of the 8-bits binary digital signals. In step 318, when bit 7 to bit 1 is logic level “0”, and bit 0 is logic level “1”, m is set to 0, and n is assigned bit 0 of the 8-bits binary digital signals. Then, the 8-bits binary digital signals are converted to a binary compressed data in a floating-point form of (1.x)*2¹. The binary compressed data is outputted with 4-bits binary numbers, (0 0 0 x). The former 3 bits of the 4-bits binary numbers represent the value of 0 and the last bit of the 4-bits binary numbers is bit 0 of the 8-bits binary digital signals.

According to the embodiment of the present invention, the present invention provides a dynamic compression method, in which when m≧4, the binary compressed data is outputted with 7-bit binary numbers, and when m≦3, the binary compressed data can be outputted with fewer bits, such as 6 bits, 5 bits and 4 bits. Hence, transmission amount of the image data transmitted to the memory 104 and the host 105 is reduced. The transmission time of the image data is thus decreased, and the volume of the memory 104 for storing the image data is also reduced. However, the present compression method is also suited to compress binary digital signals consisted of 10-bits, 12-bits and 16-bits, etc. And, n is determined according to quality of the image desired.

TABLE I Before compression After compression Recovery 0000,0000 0000 0000,0000 0000,0001 0001 0000,0001 0000,0010 0010 0000,0010 0000,0011 0011 0000,0011 0000,0100 01000 0000,0100 0010,1000 1010100 0010,1000 0010,1001 1010100 0010,1000 0010,1010 1010101 0010,1010 0100,0000 1100000 0100,0000 0100,0010 1100000 0100,0000 0100,0100 1100001 0100,0100 1111,1011 1111111 1111,1000 1111,1100 1111111 1111,1000 1111,1101 1111111 1111,1000 1111,1110 1111111 1111,1000

The above table I lists respective results before compression, after compression and after recovery for 8-bits binary digital signals. The 7-bits binary compressed data in table I are generated from the compression method according to the embodiment illustrated in FIG. 3. The value of m is represented by the former 3 bits of the 7-bit binary compressed data and n is the latter 4 bits of the 7-bits binary compressed data. As shown in table I, the higher the grayscale level of the pixel is, the higher the distortion of the recovered image data is. Thus, a decompression method of the present invention utilizing a bit-enhanced technology (BET) is provided to compensate loss of the recovered image data, which is illustrated in FIG. 4.

Referring to FIG. 1 again, the binary compressed data from the compression method of FIG. 3 and stored in the memory 104 is then outputted to a host 105 for further processing, such as decompressing to recover the original 8-bits binary digital signals and print out. The decompression method of the present invention illustrated in FIG. 4 is implemented in the host 105. In step 403, converting the former 3 bits of the 7-bits binary compressed data to an “x” value. In step 404, when x>3, and x is a non-negative integer, go to step 405, converting the latter 4 bits of the 7-bits binary compressed data to an “y” value. In accordance with the values of x and y, and the logarithm form (1.y)*2^(x), recovering the 7-bits binary compressed data to the original 8-bits binary digital signals. Then, go to step 414, a bit-enhanced method is applied to the recovered image data from step 405. The bit-enhanced method comprises steps of (a) calculating a first average of a plurality of neighboring pixels around the pixel corresponding to the recovered 8-bits binary digital signals; and (b) calculating a second average of the first average and the pixel. As a result, the compensated data of the pixel is obtained. In step 406, when x>2, go to step 407, converting the latter 3 bits of the 6-bits binary compressed data to an “y” value. In accordance with the values of x and y, and the logarithm form (1.y)*2^(x), recovering the 6-bits binary compressed data to the original 8-bits binary digital signals. Then, go to step 414, the bit-enhanced method is applied to the recovered image data from step 407. In step 408, when x>1, go to step 409, converting the latter 2 bits of the 5-bits binary compressed data to an “y” value. In accordance with the values of x and y, and the logarithm form (1.y)*2^(x), recovering the 5-bits binary compressed data to the original 8-bits binary digital signals. Then, go to step 414, the bit-enhanced method is applied to the recovered image data from step 409. In step 410, when x>0, go to step 411, converting the latter 1 bit of the 4-bits binary compressed data to an “y” value. In accordance with the values of x and y, and the logarithm form (1.y)*2^(x), recovering the 4-bits binary compressed data to the original 8-bits binary digital signals. Then, go to step 414, the bit-enhanced method is applied to the recovered image data from step 411. In step 412, when x=0, converting the last bit of the 4-bit binary compressed data to an “y” value. In accordance with the values of x and y, and the logarithm form (1.y)*2^(x), recovering the 1-bits binary compressed data to the original 8-bits binary digital signals.

FIG. 2 is a block diagram of another image processing system implementing the present image compression method, in which the binary compressed data stored in the memory 104 is accessed by image processing means 103, and then outputted to the host 105 for further processing, such as decompressing to recover the original image data. Since the data communication between image processing means 103, the memory 104 and the host 105 is in the form of the binary compressed data, the transmission amount of the image data between them is reduced, and the transmission time of the image data is therefore reduced.

With reference to table I again, the recovered image data of a pixel with a low grayscale level is less distorted, and the recovered image data of a pixel with a higher grayscale level is more distorted. Therefore, a purpose for making the recovered image of a black-area image, i.e. image with low grayscale levels, non-distorted, and the recovered image of a white-area image, i.e. image with high grayscale levels, noise-eliminated, is obtained in accordance with the present image compression method of FIG. 3.

The embodiments are only used to illustrate the present invention, not intended to limit the scope thereof. Many modifications of the embodiments can be made without departing from the spirit of the present invention. 

1. An image processing method for facilitating data transmission, comprising: capturing an image signal from an object with an image capture device; providing said image signal to an analog-to-digital converter for converting said image signal to X-bits binary digital signals consisting of bit (X−1) to bit 0, wherein X is a natural number; transmitting said X-bits binary digital signals to image processing means for compressing said X-bits binary digital signals to a binary compressed data in a floating-point form of (1.n)*2^(m), wherein a bit m represents the first bit with logic level “1” of said X-bits binary digital signals, and n represents the bits taken from said X-bits binary digital signals after the bit m, n is a non-negative integer, such that said binary compressed data in the floating-point form of (1.n)*2^(m) is outputted with a sequence of binary number representing a set of (m, n) and the latter n bits of the sequence of binary numbers are consisted of said n bits of said X-bits digital signal; and storing said binary compressed data in memory means.
 2. The method of claim 1, wherein further comprising accessing said binary compressed data from memory means by imaging processing means to a host for decompressing said binary compressed data to recover said X-bits binary digital signals.
 3. The method of claim 2, wherein said step for decompressing said binary compressed data comprises: (a) converting the bits of said binary compressed data before said latter n bits of said binary compressed data to the value of m; and (b) recovering said binary compressed data to said X-bits binary digital signals in accordance with said n bits, the value of m and the algorithm form of (1.n)*2^(m).
 4. The method of claim 3, further comprising a step for compensating the pixel corresponding to said X-bits binary digital signals with a bit-enhanced method after the step (b), wherein said bit-enhanced method comprises (c) calculating a first average of a plurality of neighboring pixels around the pixel; and (d) calculating a second average of the first average and the pixel.
 5. The method of claim 1, further comprising accessing said binary compressed data from memory means by host for decompressing said binary compressed data to recover said X-bits binary digital signals.
 6. The method of claim 5, wherein said step for decompressing said binary compressed data comprises: (a) converting the bits of said binary compressed data before said latter n bits of said binary compressed data to the value of m; and (b) recovering said binary compressed data to said X-bits binary digital signals in accordance with said n bits, the value of m and the algorithm form of (1.n)*2^(m).
 7. The method of claim 6, further comprising a step for compensating the pixel corresponding to said X-bits binary digital signals with a bit-enhanced method after the step (b), wherein said bit-enhanced method comprises (c) calculating a first average of a plurality of neighboring pixels around the pixel; and (d) calculating a second average of the first average and the pixel. 